import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

const routes = [

  // {
  //   path: '/',
  //   name: 'login',
  //   component: resolve => require([('@/views/login/index.vue')], resolve),
  // },

  {
    path: '/index',
    name: 'index',
    redirect: '/panel/showPanel',
    component: resolve => require([('@/components/layout/index.vue')], resolve),
    children: [
      {
        path: '/panel/showPanel',
        name: 'showPanel',
        meta: {
          title: '首页'
        },
        component: resolve => require([('@/views/panel/index.vue')], resolve)
      }
    ]
  },
  
]

const router = new VueRouter({
  routes
})

export default router
